package com.xyq.system.domain.exam.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ExamEditDTO {
    @NotNull(message = "竞赛id为空")
    private Long examId ;

    @NotNull(message = "竞赛标题不能为空")
    @NotEmpty(message = "竞赛标题不能为空")
    private String title ;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "请选择竞赛开始时间或结束时间")
    private LocalDateTime startTime ;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "请选择竞赛开始时间或结束时间")
    private LocalDateTime endTime ;
}
